package com.relax.mybatis.encrypt.util;

import java.security.Security;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

/**
 * @author relax
 * @date 2022/07/05
 * @desc BouncyCastle注册器
 */
public class BouncyCastleRegister {

    public static void register() {
        if (null == Security.getProvider(BouncyCastleProvider.PROVIDER_NAME))
            Security.addProvider(new BouncyCastleProvider());
    }

}
